package com.ethink.system.api;

import com.ethink.system.api.info.SystemFileInfo;
import com.ethink.system.api.request.SystemFileAddRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * 系统文件表 Facade接口
 *
 * @author default
 * @3663633333date 2022-12-01
 */
@FeignClient(name = "ethink-system-service", path = "system-service/facade/v1/systemFile", contextId = "systemFileFacade")
public interface SystemFileFacade {

    @PostMapping("/addSystemFile")
    @ResponseBody
    Integer addSystemFile(@RequestBody SystemFileAddRequest request);

    @PostMapping("/selectMapByFileIds")
    @ResponseBody
    Map<String, SystemFileInfo> selectMapByFileIds(@RequestBody List<String> filedIdList);
}